<?php
require_once('Zend/Db.php');
require_once('Zend/Db/Table.php');
require_once('Zend/Config/Xml.php');
class dbconection
{
		static function makealink()
		{
					$dbInfo = new Zend_Config_Xml('./config/config.xml','database');
					$dbLink = Zend_Db::factory('PDO_MYSQL',$dbInfo->toArray());
					$dbLink->query('set names utf8');
					Zend_Db_Table::setDefaultAdapter($dbLink);
					return $dbLink;
		}
}
?>